package com.im.project.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 用户注册参数对象
 *
 * @author yunZhouJiaDi
 */
@Data
public class RegisterDto {

    @NotEmpty(message = "邮箱号不能为空")
    @ApiModelProperty("邮箱号")
    private String email;

    @NotEmpty(message = "邮箱验证码不能为空")
    @ApiModelProperty("邮箱验证码")
    private String emailCode;

    @NotEmpty(message = "账号不能为空")
    @ApiModelProperty("账号")
    private String username;

    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @NotEmpty(message = "重复密码不能为空")
    @ApiModelProperty("重复密码")
    private String resetPassword;
}
